#!/usr/bin/env bash
mvn clean package 
docker rmi -f ptadmin/browse-tree-node-processor 599885534814.dkr.ecr.us-east-2.amazonaws.com/browse-tree-node-processor || echo "no image found!!!"

docker build . -t ptadmin/browse-tree-node-processor && docker tag ptadmin/browse-tree-node-processor 599885534814.dkr.ecr.us-east-2.amazonaws.com/browse-tree-node-processor
$(aws ecr get-login --no-include-email --region us-east-2)
docker push 599885534814.dkr.ecr.us-east-2.amazonaws.com/browse-tree-node-processor